<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorator="layout/default">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
<div class="row" layout:fragment="content">
    <h4 class="indigo-text center">输入搜索关键字</h4>
    <div class="col s6 offset-s3">
        <div id="errorMessage" class="card-panel red lighten-2" th:if="${error}">
            <span class="card-title" th:text="${error}">error</span>
        </div>
        <form action="/postSearch" method="post" class="col s12">
            <div class="row center">
                <div class="input-field col s10 offset-s1">
                    <i class="material-icons prefix">search</i>
                    <input id="keyword" name="keyword" type="text" class="validate"/>
                    <label for="keyword">搜索</label>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>